/**
 * 职称
 * 需要按照企业去存储职称
 * 企业id为null的是系统默认的职称，不允许修改
 */
const { DataTypes } = require('sequelize')
const sequelize = require('./db')
const Group = require('./Group')

const Contempt = sequelize.define('Contempt', {
    id: { type: DataTypes.INTEGER, autoIncrement: true, primaryKey: true },
    name: { type: DataTypes.STRING, allowNull: false },

})
Group.hasMany(Contempt)
Contempt.belongsTo(Group)
module.exports = Contempt